BGET

Syntax: BGET [#ch\position,] [item *[,itemi]* ..]        
    or: BGET [#ch,] [item *[,itemi]* ..]
Location: Toolkit II, THOR XVI 

This command fetches one byte at a time from the given channel (default #3).

Each item to be fetched must therefore be either an integer or a floating point variable, for example:

BGET #3\100,byte1%,keying

If the channel specified is not a file, then the command reads the value of the key(s) pressed, similar to:
x=CODE(INKEY$(-1))

As with GET, the items will be fetched from the current (or specified) file position.

position is be updated with the current file position at the end of the command.

Examples:
BGET #3\100    Set file pointer on #3 to position 100.
BGET a%        Read the byte at the current file pointer in channel #3.

NOTE:
Characters which are read from a channel using BGET are affected by TRA.

CROSS-REFERENCE:
See BPUT, PUT, GET.  
FPOS allows you to find out the current file position.  
TRUNCATE allows you to truncate a file to the current file position.  
PEEK fetches one byte from memory.
OPEN_DIR contains an example of the use of BGET.
